public class HomeWork07 {
	public static void main(String[] args){
		for(char i = 'a'; i <= 'z'; i++){
			System.out.print(i + " ");
		}
		System.out.println();
		for(char i = 'Z'; i >= 'A'; i--){
			System.out.print(i + " ");
		}
	}
}